A wrapper for the standard ADO.NET DataTable class allowing to use ADO.NET data sources in LiveLinq indexing and live views.

Namespace:  C1.LiveLinq.AdoNet
Assembly:  C1.LiveLinq (in C1.LiveLinq.dll)

Syntax

C#
[DebuggerDisplayAttribute("\{Count = {Count} \}")]
[DefaultMemberAttribute("Item")]
public class IndexedDataTable<TRow> : IObservableSource<TRow>, 
	IItemIdProvider<TRow>, IIndexedSource<TRow>, IList<TRow>, ICollection<TRow>, 
	IEnumerable<TRow>, IEnumerable, IIndexedDataTable, ITypedList, IListSource, 
	INotifyPropertyChanged
where TRow : DataRow
Visual Basic
<DebuggerDisplayAttribute("\{Count = {Count} \}")> _
<DefaultMemberAttribute("Item")> _
Public Class IndexedDataTable(Of TRow As DataRow) _
	Implements IObservableSource(Of TRow), IItemIdProvider(Of TRow),  _
	IIndexedSource(Of TRow), IList(Of TRow), ICollection(Of TRow),  _
	IEnumerable(Of TRow), IEnumerable, IIndexedDataTable, ITypedList, IListSource,  _
	INotifyPropertyChanged

Type Parameters

TRow
The type of the rows of the DataTable. It is a class derived from DataRow

Remarks

Note: The IndexedDataTable wrapper is owned by the original DataTable object (in fact, it is stored in its ExtendedProperties). So, if you create a wrapper for the same data table several times, it will be the same object.

Inheritance Hierarchy

System..::..Object
  C1.LiveLinq.AdoNet..::..IndexedDataTable<(Of <(<'TRow>)>)>

See Also